package cn.tedu.tmall.front.mall.service;

import cn.tedu.tmall.common.consts.data.MallConsts;
import cn.tedu.tmall.common.pojo.authentication.CurrentPrincipal;
import cn.tedu.tmall.front.mall.pojo.param.OrderAddNewParam;
import cn.tedu.tmall.front.mall.pojo.vo.OrderListItemVO;
import cn.tedu.tmall.front.mall.pojo.vo.OrderStandardVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IOrderService extends MallConsts {
    void addNew(CurrentPrincipal principal, OrderAddNewParam orderAddNewParam);
    //查询单个订单信息
    OrderStandardVO selectByUserByOrderId(CurrentPrincipal principal,Long orderId);
    //根据用户id查询所有订单信息
    List<OrderListItemVO> list(CurrentPrincipal principal);
}
